package com.springboot.demo.design.pattern.decorator;

/**
 * 面条装饰者
 *
 * @author supu
 * @date 2019-07-08 16:08
 **/
public class NoodleDecorator extends GreensDecorator {
    public NoodleDecorator(DecoratorComponent decoratorComponent) {
        super(decoratorComponent);
    }

    @Override
    public void addGreens() {
        decoratorComponent.addGreens();
        System.out.println(" 添加面条了");
    }
}
